<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $view->title;?></title>

		<!-- Define CSS stylesheets -->
		<link rel="stylesheet" href="_jslib/jquery/themes/base/jquery.ui.all.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/multi-select.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/main.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/forms.css">
		
		<!-- Define Javascript Libraries -->
		<script type="text/javascript" src="_jslib/jquery/jquery-1.10.2.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery-ui.js"></script>	
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.core.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.mouse.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.button.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.draggable.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.position.js"></script>
		<script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.dialog.js"></script>
		<script type="text/javascript" src="_jslib/jquery/watermark/jquery.watermark.js"></script>
		<script type="text/javascript" src="_jslib/main.js"></script>

		<script>
			$( document ).ready(function() {
			   $("#tabs").tabs();
			    $("#menu").menu({position: {at: "left bottom"}});
			    setInterval("formDateTimeStr()", 1000);
			});
		</script>
	</head>

	<body>
		<div id="content">
			<div id="main_header">
				<h3>Gemba360 GP Clinic</h3>
				<p class="main_head">
					<span class="main_name">
						Welcome 
						<?php
							if($_SESSION['user']['user_type_id'] != CONST_SUPER_ADMIN_TYPE){
								echo ($_SESSION['user']['is_practicioner'] == 1) ? $_SESSION['user']['practicioner_name'] : $_SESSION['user']['nonpracticioner_name'];
							}else{
								echo $_SESSION['user']['username'];
							}
						?>
						<a href="<?=APP_ROOT?>/logout">(Logout)</a>
					</span> 
					<span class="main_time"></span>
				</p>
			</div>

			<?include("pages/header_menu.php");?>
			
			<div id="main_content">
				<h1>
					Patient Record - Bless Bauson
					<p class="extra-link"> 
						<a href="javascript:void(0)" class="editBtn" id="editBtn" onClick="">View Patient Details</a>
					</p>
				</h1>

				<div id="tabs">
					<ul class="menu-nav">
						<li><a href="#tabs-1" class="summary">Summary</a></li>
						<li><a href="#tabs-2" class="old-script">Old Scripts</a></li>
						<li><a href="#tabs-3" class="immunization">Immunization</a></li>
						<li><a href="#tabs-4" class="correspondence">Correspondence</a></li>
						<li><a href="#tabs-5" class="mdexchange">MDExchange</a></li>
						<li><a href="#tabs-6" class="currentrx">Current Rx</a></li>
						<li><a href="#tabs-7" class="progress">Progress</a></li>
						<li><a href="#tabs-8" class="past-history">Past History</a></li>
						<li><a href="#tabs-9" class="results">Results</a></li>
						<li><a href="#tabs-10" class="letters">Letters</a></li>
						<li><a href="#tabs-11" class="documents">Documents</a></li>
					</ul>
					<div id="tabs-1"><?php include($view->page);?></div>
					<div id="tabs-2"><?php include($view->page);?></div>
					<div id="tabs-3"><?php include($view->page);?></div>
					<div id="tabs-4"><?php include($view->page);?></div>
					<div id="tabs-5"><?php include($view->page);?></div>
					<div id="tabs-6"><?php include($view->page);?></div>
					<div id="tabs-7"><?php include($view->page);?></div>
					<div id="tabs-8"><?php include($view->page);?></div>
					<div id="tabs-9"><?php include($view->page);?></div>
					<div id="tabs-10"><?php include($view->page);?></div>
					<div id="tabs-11"><?php include($view->page);?></div>
				</div>
				

				<!--<ul id="records-two-cols">
					<li class="menu-nav">
						<ul>
							<li>
								<p class="summary">Summary</p>
							</li>
							<li>
								<p class="old-script">Old Scripts</p>
							</li>
							<li>
								<p class="immunization">Immunization</p>
							</li>
							<li>
								<p class="correspondence">Correspondence</p>
							</li>
							<li>
								<p class="mdexchange">MDExchange</p>
							</li>
							<li>
								<p class="currentrx">Current Rx</p>
							</li>
							<li>
								<p class="progress">Progress</p>
							</li>
							<li>
								<p class="past-history">Past History</p>
							</li>
							<li>
								<p class="results">Results</p>
							</li>
							<li>
								<p class="letters">Letters</p>
							</li>
							<li>
								<p class="documents">Documents</p>
							</li>
						</ul>
					</li>
					<li class="record-content"><?php// include($view->page);?></li>
				</ul>-->

			</div>
			<div id="footer">
				Copyright &copy; 2014 Gemba360.
			</div>
		</div>
	</body>
</html>